"""
LESSON 10. QATOR BUYRUQLARI
"""
# https://docs.python.org/3/library/stdtypes.html#string-methods
# https://pythonworld.ru/tipy-dannyx-v-python/stroki-funkcii-i-metody-strok.html

# len(str) - Belgilar soni
# str.capitalize() - Qatordagi birinchi xarfni kattalashtiradi
# str.center(width, [fill]) - O'rtaga oladi
# str.count(str, [start],[end]) - Sanaydi
# str.find(str, [start],[end]) - O'rnini izlaydi(-1)
# str.index(str, [start],[end]) - O'rnini izlaydi(ValueError)
# str.replace(o'zini, boshqaga) - Almashtiradi
# str.split([belgi])- Ajratish

# str.isdigit() - Raqammi?
# str.isalpha() - Alfabetmi?
# str.isalnum() - Alfabetdagi raqammi?
# str.islower() - Kichik harflarmi?
# str.isupper() - Katta harflarmi?

S = 'hello,world'
print(len(S))
S2 = S.capitalize()
print(S, S2)
print(S.center(20, '!'))
print(S.count('l', 0, 4))
print(S.find('a'))
print(S.index('o'))
print(S.replace('l', 't'))
print(S.split(','))
print(S.isdigit())
print(S.isalpha())
